import ViewModelBase from "../../../../framework/view/ViewModelBase";
import ModelFlyIcon from "../../fly_icon/model/ModelFlyIcon";
import ModelGuide from "../../guide/model/ModelGuide";
import VCMainDemo from "../vc/VCMainDemo";


export default class ModelMainDemo extends ViewModelBase {
    static modelName: string = "ModelMainDemo";

    initData(data:any){

    }
    
    tryEnter(params?: { [key: string]: any, hideOther?: boolean, unHideNames?: string[] }){
        if (!this.checkEnable()) {
            return;
        }
        let modelGuide = ModelGuide.getInstance() as ModelGuide;
        modelGuide.tryEnter();
        let modelFlyIcon = ModelFlyIcon.getInstance() as ModelFlyIcon;
        modelFlyIcon.tryEnter();
        this.showView(VCMainDemo, params)
    }

    checkEnable(){
        return true;
    }
}
